/*
 * 作者:熊猫
 * 日期:2017 - 3 - 20 9 - 48 - 30
 *
 */

package net.lainiao.morethread.Chapter7.demo11;

/**
 * Created by Administrator on 2017/3/20.
 */
public class Sensor1 implements Runnable {
    private ParkingCounter counter;
    public Sensor1(ParkingCounter counter){
        this.counter = counter;
    }
    @Override
    public void run() {
        counter.carIn();
        counter.carIn();
        counter.carIn();
        counter.carIn();
        counter.carOut();
        counter.carOut();
        counter.carOut();
        counter.carIn();
        counter.carIn();
        counter.carIn();
    }


}
